<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<f:subview id="orderClientInfo">
    <h:panelGroup layout="block" styleClass="swimmy1">
        <h:panelGrid columns="2" cellpadding="0" cellspacing="0" columnClasses="dleft,dright" style="display:inline;">
            <h:outputText value="Клиент" styleClass="b"/>
            <h:outputText value="#{OrderBean.order.client.companyName}"/>

            <%--Долг по банку--%>
            <h:outputText value="Долг по банку" styleClass="b"/>
            <h:outputText value="#{OrderBean.order.client.debtBank}"/>

            <%--Долг по кассе--%>
            <h:outputText value="Долг по кассе" styleClass="b"/>
            <h:outputText value="#{OrderBean.order.client.debtCash}"/>


        </h:panelGrid><br>
        <h:dataTable cellpadding="0" cellspacing="0" columnClasses="dleft,dright" style="display:inline;" value="#{OrderBean.currentClientClientgroupsInfo}" var="item">
            <h:column>
                <h:outputText value="#{item.key.name}: " style="font-weight:bold"/>
            </h:column>
            <h:column>
                <h:outputText value="#{item.value.name}"/>
            </h:column>
        </h:dataTable>
    </h:panelGroup>
</f:subview>